/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package figure;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JComponent;

/**
 *
 * @author User
 */
public class Round extends JComponent {
  
   public Round() {
      //  this.setBounds(0, 0, 80, 80);
        this.setBounds(0, 0, 90, 90);
        this.setPreferredSize(new Dimension(90,90));
        this.setSize(90, 90);
        this.setBackground(Color.red);
       // this.setVisible(true);
        
    }
  
   public void paintComponent(Graphics g){
        super.paintComponent(g);
        Graphics2D g2d = (Graphics2D) g;
        g2d.setStroke(new BasicStroke(7)); 
        g2d.drawOval(15,15, 70, 70);
    }
  
}
